package com.fastjrun.eladmin.itrms.mapstruct;

import com.fastjrun.eladmin.itrms.dto.SoftDTO;
import com.fastjrun.eladmin.itrms.entity.RmsSoft;
import com.fastjrun.eladmin.itrms.vo.SoftVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

import java.util.List;

public abstract class RmsSoftMapperDecorator implements RmsSoftMapper {

    @Autowired
    @Qualifier("delegate")
    private RmsSoftMapper delegate;

    @Override
    public SoftVO toVO(RmsSoft entity) {
        SoftVO softVO = delegate.toVO(entity);
        return softVO;
    }

    @Override
    public List<SoftVO> toVO(List<RmsSoft> entityList) {
        return delegate.toVO(entityList);
    }

    @Override
    public RmsSoft toEntity(SoftDTO dto) {

        return delegate.toEntity(dto);
    }
}
